home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Misc / InstallerNG / developer / gui / example / igui_TRAP_Mode.c < prev    next >
C/C++ Source or Header  |  1999-10-28  |  1KB  |  57 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  *  with a call to this function, the InstallerNG informs the GUI
  10.  *  that it now starts or ends the interpretation of several TRAP
  11.  *  statements. as shown in the igui_WaitApp() function, the GUI
  12.  *  has to distinguish between normal mode, SWING mode and TRAP
  13.  *  mode
  14.  *
  15.  *  IN:  application - pointer to the private application structure
  16.  *       mode - TRUE or FALSE, depends on whether the InstallerNG
  17.  *              enters (TRUE) or exits (FALSE) the TRAP mode
  18.  *
  19.  *  OUT: the mode argument itself
  20.  *
  21.  */
  22.  
  23. /********************************************************************
  24.  *
  25.  *  STATIC
  26.  *
  27.  */
  28.  
  29. /********************************************************************
  30.  *
  31.  *  EXTERN
  32.  *
  33.  */
  34.  
  35. /********************************************************************
  36.  *
  37.  *  PUBLIC
  38.  *
  39.  */
  40.  
  41. /********************************************************************
  42.  *
  43.  *  CODE
  44.  *
  45.  */
  46.  
  47. BOOL __asm igui_TRAP_Mode(register __a0 APTR application,
  48.                           register __d0 BOOL mode)
  49. {
  50.   #ifdef DEBUG
  51.   DEBUG_MAKRO
  52.   #endif
  53.  
  54.   ((struct Application *) application)->app_TRAP_Mode = mode;
  55.   return (mode);
  56. }
  57.